﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class CubeStatic : MonoBehaviour
{
	//public GameObject bg;
	
	public float minFov = 20f;
	public float maxFov = 80f;
	public float sensitivity = 10f;
	//private float fov;

	

	
	void Start(){
		//slider.value = Camera.main.fieldOfView;

	}
	void Update() {
		//slider.value += Input.GetAxis("Mouse ScrollWheel") * sensitivity;
		//slider.value = Mathf.Clamp(slider.value, minFov, maxFov);//限制value的值在min和max之间， 如果value小于min，返回min。 如果value大于max，返回max，否则返回value 
		//Camera.main.fieldOfView = slider.value;

		}
}